package top.hmtools.ckfinder.beans;

import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlElements;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

import top.hmtools.ckfinder.beans.commons.BaseResultBean;
import top.hmtools.ckfinder.beans.commons.ConnectorInfoBean;
import top.hmtools.ckfinder.beans.commons.ResourceTypeBean;

/**
 * 接收到“初始化”操作指令时，反馈给前端调用者的响应数据结构
 * @author Hybomyth
 *
 */
@XmlRootElement(name="Connector")
public class InitResultBean extends BaseResultBean {

	@XmlElement(name="ConnectorInfo")
	private ConnectorInfoBean connectorInfoBean;
	
	@XmlElementWrapper(name="ResourceTypes")
	@XmlElements(value={@XmlElement(name="ResourceType")})
	private List<ResourceTypeBean> resourceTypeBeans;

	@XmlTransient
	public ConnectorInfoBean getConnectorInfoBean() {
		return connectorInfoBean;
	}

	public void setConnectorInfoBean(ConnectorInfoBean connectorInfoBean) {
		this.connectorInfoBean = connectorInfoBean;
	}

	@XmlTransient
	public List<ResourceTypeBean> getResourceTypeBeans() {
		return resourceTypeBeans;
	}

	public void setResourceTypeBeans(List<ResourceTypeBean> resourceTypeBeans) {
		this.resourceTypeBeans = resourceTypeBeans;
	}
	
	
}
